<?

class Mdl_Search extends Model {

    function Mdl_Search() {

        parent::Model();

    }

    function save_search() {

        $hash = md5(time());

        $db_array = array(
            'hash'          =>  $hash,
            'query_info'    =>  $this->input->post('search')
        );

        $this->db->insert('inktype_hash', $db_array);

        return $hash;

    }

}

?>